<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>数组对象</title>
</head>

<body>
  <script>
    // 数组对象
    let student = [
      { name: '张三', age: 14, sex: "男" },
      { name: '李四', age: 14, sex: "男" },
      { name: '王五', age: 14, sex: "男" },
      { name: '赵六', age: 14, sex: "男" }
    ]

    for (let index = 0; index < student.length; index++) {
      console.log(student[index].name);
    }
  </script>
</body>

</html>